<style lang="scss">
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	@import "@/uni_modules/uview-ui/index.scss";
	@import './static/iconfont/iconfont.css';
	
</style>


<script>
	import {checkAuth} from "@/utils/auth";
	export default {
		onLaunch: function() {
			console.log('App Launch')
			checkAuth();
			// #ifdef MP-WEIXIN
			const updateManager = uni.getUpdateManager();
			updateManager.onCheckForUpdate(res => {
				console.log('检测到新版本：', res.hasUpdate);
			});
			updateManager.onUpdateReady(() => {
			  uni.showModal({
			    title: '更新提示',
			    content: '新版本已下载完成，是否立即重启应用？',
			    success: res => {
			      if (res.confirm) {
			        updateManager.applyUpdate();
			      }
			    }
			  });
			});
			// #endif
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="less">
	/**app.wxss**/

	/* @import url(""); */
	/* @font-face {
		font-family: "song";
		src:url('/static/font/song.ttf') format('truetype');
	}*/
	/* @font-face {
		font-family: "PFR";
		src:url('/static/font/苹方黑体-准-简.ttf') format('truetype');
	} */
	/* @font-face {
		font-family: "PFM";
		src:url('/static/font/苹方黑体-中黑-简.ttf') format('truetype');
	} */

	*,
	view {
		box-sizing: border-box;
	}

	page {
		height: 100%;
		min-height: 100%;
		background-color: #f5f5f5;
		box-sizing: border-box;
		/* font-family: "宋体"; */
		/* font-family: "pingfang sc medium"; */
		/* "Hiragino Sans GB",
			"Microsoft YaHei",
			"WenQuanYi Micro Hei",
			sans-serif; */
	}

	.whiteBg {
		background-color: #fff;
	}

	button {
		position: relative;
		display: block;
		margin-left: 0;
		margin-right: 0;
		padding-left: 0;
		padding-right: 0;
		box-sizing: border-box;
		font-size: inherit;
		text-align: center;
		text-decoration: none;
		line-height: inherit;
		border-radius: 0;
		-webkit-tap-highlight-color: transparent;
		overflow: hidden;
		color: inherit;
		background-color: transparent;
	}

	button:before,
	button:after {
		display: none;
	}

	.button-hover {
		color: rgba(0, 0, 0, 1);
		background-color: transparent;
	}

	image {
		max-width: 100%;
		vertical-align: middle;
		display: inline-block;
	}

	.foot-menu {
		position: fixed;
		bottom: 0;
		left: 0;
		width: 100%;
		padding: 5upx 0;
		/* height: 98upx; */
		display: flex;
		justify-content: space-around;
		background-color: #fff;
		align-items: center;
		border-top: 1px solid #f5f5f5;
		z-index: 100;
	}

	.foot-menu button {
		height: 98upx;
		display: flex;
		flex-flow: column;
		justify-content: center;
		align-items: center;
	}

	.foot-menu button image {
		width: 48upx;
		height: 48upx;
	}

	.foot-menu button text {
		font-size: 20upx;
		display: block;
		margin-top: 6upx;
	}

	.foot-menu button.current text {
		color: #2f54eb;
	}

	.empty {
		text-align: center;
		font-size: 30upx;
		color: #fff;
		padding-top: 100upx;
	}

	.empty image {
		width: 220upx;
		height: 220upx;
	}

	.empty text {
		display: block;
		text-align: center;
		margin-bottom: 30upx;
		margin-top: 30upx
	}

	.empty button {
		margin: 0 auto;
		width: 230upx;
		height: 60upx;
		line-height: 60upx;
		text-align: center;
		background-color: rgba(255, 255, 255, .5);
		border-radius: 10upx;
	}

	.suspension-btn {
		position: fixed;
		right: 30upx;
		bottom: 50upx;

		width: 88upx;
		height: 88upx;
		background: rgba(255, 255, 255, 1);
		box-shadow: 0px 4upx 21upx 0px rgba(0, 0, 0, 0.05);
		border-radius: 50%;
	}

	.suspension-btn image {
		width: 50upx;
		height: 50upx;
		transition: all 200ms ease;
	}

	.suspension-btn.isOpen image {
		transform: rotate(45deg);
	}

	.suspension-btn2 {
		position: fixed;
		right: 20upx;
		bottom: 155upx;
	}

	.suspension-btn2 image {
		width: 110upx;
		height: 110upx;
	}

	.suspension-btn3 {
		position: fixed;
		right: 30upx;
		bottom: 178upx;
		line-height: 88upx;
		text-align: center;
		font-size: 28upx;
		font-weight: 500;
		color: rgba(255, 255, 255, 1);
		width: 88upx;
		height: 88upx;
		background: rgba(255, 255, 255, 1) linear-gradient(129deg, rgba(92, 141, 247, 1) 0%, rgba(47, 84, 235, 1) 100%);
		box-shadow: 0px 4upx 21upx 0upx rgba(0, 0, 0, 0.05);
		border-radius: 50%;
	}

	.suspension-btn4 {
		position: fixed;
		right: 30upx;
		bottom: 296upx;
		line-height: 88upx;
		text-align: center;
		font-size: 28upx;
		font-weight: 500;
		color: rgba(255, 255, 255, 1);
		width: 88upx;
		height: 88upx;
		background: rgba(255, 255, 255, 1) linear-gradient(129deg, rgba(92, 141, 247, 1) 0%, rgba(47, 84, 235, 1) 100%);
		box-shadow: 0px 4upx 21upx 0upx rgba(0, 0, 0, 0.05);
		border-radius: 50%;
	}

	.suspension-btn5 {
		position: fixed;
		right: 30upx;
		bottom: 50upx;
		line-height: 88upx;
		text-align: center;
		font-size: 28upx;
		font-weight: 500;
		color: rgba(255, 255, 255, 1);
		width: 88upx;
		height: 88upx;
		background: rgba(255, 255, 255, 1) linear-gradient(129deg, rgba(92, 141, 247, 1) 0%, rgba(47, 84, 235, 1) 100%);
		box-shadow: 0px 4upx 21upx 0upx rgba(0, 0, 0, 0.05);
		border-radius: 50%;
	}

	.color-white {
		color: #fff;
	}

	.color-black {
		color: #000;
	}

	.color-gray {
		color: #ccc;
	}

	.color-gray2 {
		color: #999;
	}

	.color-red {
		color: #f00;
	}

	.color-blue {
		color: #019dd9;
	}

	.color-blue2 {
		color: #2F54EB;
	}

	.color-org {
		color: #ff5001;
	}

	.bg-white {
		background-color: #fff;
	}

	.bg-white-op3 {
		background-color: rgba(255, 255, 255, 0.3);
	}

	.bg-white-op5 {
		background-color: rgba(255, 255, 255, 0.5);
	}

	.bg-black {
		background-color: #000;
	}

	.bg-black-op3 {
		background-color: rgba(0, 0, 0, 0.3);
	}

	.bg-black-op4 {
		background-color: rgba(0, 0, 0, 0.4);
	}

	.bg-black-op5 {
		background-color: rgba(0, 0, 0, 0.5);
	}

	.bg-black-op6 {
		background-color: rgba(0, 0, 0, 0.6);
	}

	.bg-gray {
		background-color: #ccc;
	}

	.bg-gray2 {
		background-color: #999;
	}

	.bg-red {
		background-color: #f00;
	}

	.bg-blue {
		background-color: #019dd9;
	}

	.bg-blue2 {
		background-color: #2F54EB;
	}

	.bg-org {
		background-color: #ff5001;
	}

	.mt-0 {
		margin-top: 0upx;
	}

	.mt-5 {
		margin-top: 5upx;
	}

	.mt-10 {
		margin-top: 10upx;
	}

	.mt-15 {
		margin-top: 15upx;
	}

	.mt-20 {
		margin-top: 20upx;
	}

	.mt-30 {
		margin-top: 30upx;
	}

	.mr-0 {
		margin-right: 0upx;
	}

	.mr-5 {
		margin-right: 5upx;
	}

	.mr-10 {
		margin-right: 10upx;
	}

	.mr-15 {
		margin-right: 15upx;
	}

	.mr-20 {
		margin-right: 20upx;
	}

	.mb-0 {
		margin-bottom: 0upx;
	}

	.mb-5 {
		margin-bottom: 5upx;
	}

	.mb-10 {
		margin-bottom: 10upx;
	}

	.mb-15 {
		margin-bottom: 15upx;
	}

	.mb-20 {
		margin-bottom: 20upx;
	}

	.ml-0 {
		margin-left: 0upx;
	}

	.ml-5 {
		margin-left: 5upx;
	}

	.ml-10 {
		margin-left: 10upx;
	}

	.ml-15 {
		margin-left: 15upx;
	}

	.ml-20 {
		margin-left: 20upx;
	}

	.pt-0 {
		padding-top: 0upx;
	}

	.pt-5 {
		padding-top: 5upx;
	}

	.pt-10 {
		padding-top: 10upx;
	}

	.pt-15 {
		padding-top: 15upx;
	}

	.pt-20 {
		padding-top: 20upx;
	}

	.pr-0 {
		padding-right: 0upx;
	}

	.pr-5 {
		padding-right: 5upx;
	}

	.pr-10 {
		padding-right: 10upx;
	}

	.pr-15 {
		padding-right: 15upx;
	}

	.pr-20 {
		padding-right: 20upx;
	}

	.pb-0 {
		padding-bottom: 0upx;
	}

	.pb-5 {
		padding-bottom: 5upx;
	}

	.pb-10 {
		padding-bottom: 10upx;
	}

	.pb-15 {
		padding-bottom: 15upx;
	}

	.pb-20 {
		padding-bottom: 20upx;
	}

	.pl-0 {
		padding-left: 0upx;
	}

	.pl-5 {
		padding-left: 5upx;
	}

	.pl-10 {
		padding-left: 10upx;
	}

	.pl-15 {
		padding-left: 15upx;
	}

	.pl-20 {
		padding-left: 20upx;
	}

	.flex {
		display: flex;
	}

	.align-self-start {
		align-self: flex-start;
	}

	.align-self-center {
		align-self: center;
	}

	.align-self-end {
		align-self: flex-end;
	}

	.flex-nowrap {
		flex-wrap: nowrap;
	}

	.flex-wrap {
		flex-wrap: wrap;
	}

	.flex-flow {
		flex-flow: column;
	}

	.justify-start {
		justify-content: flex-start;
	}

	.justify-center {
		justify-content: center;
	}

	.justify-around {
		justify-content: space-around;
	}

	.justify-between {
		justify-content: space-between;
	}

	.justify-end {
		justify-content: flex-end;
	}

	.align-start {
		align-items: flex-start;
	}

	.align-center {
		align-items: center;
	}

	.align-end {
		align-items: flex-end;
	}

	.align-baseline {
		align-items: baseline;
	}

	.ta-c {
		text-align: center;
	}

	.ta-l {
		text-align: left;
	}

	.ta-r {
		text-align: right;
	}

	.d-b {
		display: block;
	}

	.d-n {
		display: none;
	}

	.d-ib {
		display: inline-block;
	}

	.d-i {
		display: inline;
	}

	.f-l {
		float: left;
	}

	.f-r {
		float: right;
	}

	.hide {
		display: none;
	}

	.show {
		display: block;
	}

	.hidden {
		visibility: hidden;
	}

	.clearfix:before,
	.clearfix:after {
		display: table;
		content: " ";
	}

	.clearfix:after {
		clear: both;
	}

	uni-toast .uni-sample-toast {
		position: fixed;
		left: 0;
		top: 90upx;
		transform: translate(0, 0);
		width: 100%;
		max-width: none;
	}

	.uni-simple-toast__text {
		color: #F44858 !important;
		width: 100%;
		font-size: 24upx !important;
		border-radius: 0 !important;
		padding: 15upx 15upx 15upx 30upx !important;
		text-align: left !important;
		background-color: #FDECEE !important;
	}

	/* 蒙尘 */
	.black-mask {
		position: fixed;
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;
		background-color: rgba(0, 0, 0, .5);
		z-index: 101;
	}

	.blackSty1 {
		padding-bottom: 68upx !important;
	}

	/* 右上角弹窗 */
	.rightPopup {
		background-color: rgba(0, 0, 0, .7);
		border-radius: 6upx;
		position: fixed;
		top: 120upx;
		right: 30upx;
		z-index: 101;

		&-all {
			position: relative;

			&-item {
				width: 200upx;
				height: 80upx;
				line-height: 80upx;
				font-size: 32upx;
				color: #fff;
				text-align: center;
				border-bottom: 1upx solid rgba(255, 255, 255, .2);

				&:last-child {
					border-bottom: 0;
				}
			}

			&::before {
				content: '';
				position: absolute;
				right: 30upx;
				top: -18upx;
				width: 0;
				height: 0;
				border: 10upx solid;
				border-color: transparent transparent rgba(0, 0, 0, .7);
			}
		}
	}

	/* 弹窗内容 */
	.popupContent {
		position: fixed;
		left: 0;
		bottom: 0;
		width: 100%;
		z-index: 102;
		// padding: 0 30upx;
		transition: transform .2s ease;
	}

	/* 弹窗过渡 */
	.popupUp {
		transform: translateY(0);
	}

	.popupDown {
		transform: translateY(500upx);
	}

	.uni-popup {
		z-index: 100 !important;
	}

	[type="search"]::-webkit-search-decoration {
	  display: none;
	}
</style>
